package top.lyc829.mymusic.model.http.api

import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
import top.lyc829.mymusic.model.bean.*

/**
 * @Author lyc
 * @create 2021-07-06 11:50
 */
interface IndexService {

    @GET("/banner")
    suspend fun getBanners(@Query(value = "type") type: Int) : BannerResult

    @GET("/recommend/resource")
    suspend fun getIndexRecommendPlayList() : IndexRecommendPlayList

    @GET("/top/album")
    suspend fun getTopAlbums(@Query(value = "limit") limit: Int): TopAlbumResult

    @GET("/top/song")
    suspend fun getIndexNewSongs(@Query(value = "type") type: Int): NewSongResult

    @GET("/search")
    fun search(@Query(value = "keywords") keywords: String): Call<Search>

}